<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        //把数字型转换为字符串
    var num=1;

    var str =num.toString();
    console.log(str);

    console.log(typeof str);   //显示 字符串类型

    console.log(String(num));

    //利用加字符串 转换字符串 
    console .log (num +'');
    </script>


</body>
</html>